from flask import session
from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from info import create_app
from info import db


app=create_app('development')
Migrate(app,db)
manager=Manager(app)
manager.add_command('db',MigrateCommand)
@app.route('/')
def index():
    session['name']='itheima'
    return 'index233'


if __name__ == '__main__':
    app.run(debug=True,port=5678)